<template>
    <div>
        这是消息页面
    </div>
</template>

<script>
import tools from '@/tools'
export default {
    beforeRouteEnter (to, from, next) {
        // console.log(to);
        if(tools.getCookie("isLogin") === "ok"){
            next()
        }else{
            next("/login");
        }
    }
}
</script>